Skip to content

Related to the git commit - #186

Open
simonredfern wants to merge 16 commits into
OpenBankProject:developfrom
simonredfern:develop
Open

simonredfern wants to merge 16 commits into
OpenBankProject:developfrom
simonredfern:develop

Conversation

@simonredfern

Copy link
Copy Markdown
Member

No description provided.

simonredfern and others added 16 commits October 20, 2026 15:59
The monitoring pages check whether a token may use a Role by asking
OBP-API, at GET /obp/v7.0.0/banks/SYS/my/roles/ROLE_NAME. OBP-API used
to answer with a list of auth modes, and the check looked for
UserXORApplication in that list. OBP-API has now removed auth modes.
Instead it answers with a single field, allowed, which is true or false.
The check now reads that field.
Without this change, the monitoring pages would refuse every token once
OBP-API is upgraded.
Scans src, server, Dockerfiles, scripts and the example configs for obp/vX.Y.Z and quoted version literals below v5.1.0; any hit must be listed in BELOW_V510 with a reason.
obp-api-contract/contract.json records verb, path, source, needles, the version constants each path is built from, and the response fields the code reads, for the 28 fixed calls of the front end and the server.
snapshot.py reads the public resource docs of each version in contract.json and records the operation id and response fields of every call; snapshot.json was taken from k8s.openbankproject.com (OBP-API v7.0.0, 474d4bcc).
server/test/obpApiContract.test.ts checks that every needle and version constant is in its source, that every line building an OBP-API path is listed, that the snapshot matches the contract, and that every call and every field it reads is documented unless recorded as a gap.
A literal path segment also matches a documented placeholder, so a call whose own endpoint is gone could match a neighbouring endpoint when the snapshot is retaken, and the tests would pass against the wrong fields. snapshot.py now compares each call's operation with the snapshot.json already on disk: if one differs it lists the calls and writes nothing, unless --accept-rebind is given. A path with no /obp/vX.Y.Z prefix is recorded as missing and unversioned instead of stopping the script. The file is the same in every repository that keeps an OBP-API contract.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants